package com.feather.common.web;

import java.nio.ByteBuffer;

public interface WebSocketHandler {
	void onOpen(WebSocketMessage message);

	void onMessage(WebSocketMessage message, String text);

	void onMessage(WebSocketMessage message, ByteBuffer buff);

	void onError(WebSocketMessage message, Throwable throwable);

	void onClose(WebSocketMessage message);
}
